export function nullifySubscription(key) {
    if (this[key] != null) {
        this[key].unsubscribe();
        this[key] = null;
    }
}

export function deleteSubscription(key) {
    if (this[key] != null) {
        this[key].unsubscribe();
        delete this[key];
    }
}